<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>{$title}</h2>
        <ol class="breadcrumb">
            <li>
                <a href="#">首页</a>
            </li>
            <li>
                <a href="#{literal}{:U('{/literal}{$name}/')}">{$title}</a>
            </li>
            <li class="active">
                <strong>{literal}{$isEdit?'修改':'添加'}{/literal}{$title}</strong>
            </li>
        </ol>
    </div>
</div>

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div>
                        <button class="btn btn-link" type="button" onclick="history.back()">
                            <span class="fa fa-angle-left"></span>
                            返回
                        </button>
                    </div>
                    <form method="post" class="form-horizontal" id="form1">
                        {volist name="formFields" id="vo"}
                        {if condition="$vo.field neq 'id' && $vo.field neq 'create_time'"}
                        <div class="form-group">
                            <label class="col-sm-2 control-label">{$vo.title}</label>
                            <div class="col-sm-10">
                                {notempty name="vo.comboField"}
                                <select name="{$vo.field}" class="form-control">
                                    {$vo.options}
                                </select>
                                {else/}
                                {if condition="$vo.field eq 'sort'"}
                                <input value="{literal}{$m{/literal}.{$vo.field}}" placeholder="{$vo.title}" name="{$vo.field}" type="number" required class="form-control">
                                {else/}
                                <input value="{literal}{$m{/literal}.{$vo.field}}" placeholder="{$vo.title}" name="{$vo.field}" type="text" required class="form-control">
                                {/if}
                                {/notempty}
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        {/if}
                        {/volist}
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <!--<button class="btn btn-white" data-op="reset" type="button">重 置</button>-->
                                <!--&nbsp;-->
                                <!--&nbsp;-->
                                <button data-style="expand-left" class="btn btn-primary ladda-button" type="button"
                                        data-op="submit">确 定
                                </button>
                            </div>
                        </div>
                        <div>
                            <button class="btn btn-link" data-op="back" type="button">
                                <span class="fa fa-angle-left"></span>
                                返回
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    YForm.create('#form1', "{literal}{:U('saveModel')}{/literal}",'{literal}{$m.id}{/literal}');
</script>